/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.trainning.luyennv.btvn1;

import java.util.Scanner;

/**
 *
 * @author Nhim
 */
public class Bai4 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        Lietke(n);
    }
    public static void Lietke(int n){
        int dem = 0;
        long i = 1;
        while(true){
            if(dem == n) break;
            else{
                if(ngto(i)){
                    System.out.println(i);
                    dem++;
                }
            }
            i++;
        }
    }
    public static boolean ngto(long n){
        if(n < 2) return false;
        for( int i = 2; i <= Math.sqrt(n); i++){
            if( n % i == 0) return false;
        }
        return true;
    }
}
